<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
{% if not config.author %}{% include "not_configured.html" %}{% else %}
<head>
	<title>
		{% block title %}{% if page_title %}{{ page_title }}{% endif %}{% endblock %}
		- {{ config.title }}
	</title>
	<meta content="application/xhtml+xml; charset=utf-8" http-equiv="content-type" />
	{% if config.keywords %}
		<meta content="{{ config.keywords }}" name="keywords" />
	{% endif %}
	{% if config.description %}
		<meta content="{{ config.description }}" name="description" />
	{% endif %}
	{% if config.author %}
		<meta content="{{ config.author }}" name="author" />
		<meta content="&copy; {% now "Y" %} {{ config.author }}" name="copyright" />
	{% endif %}
	<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/{% block css %}base.css{% endblock %}" />
	{% block feed %}
		{% if feed_url %}
			<link rel="alternate" type="application/rss+xml" title="{{ site_title }}" href="{{ feed_url }}" />
		{% endif %}
	{% endblock %}
	{% block extra_head %}{% endblock %}
</head>
<body>
	<div class="header">
		<div class="title">
			<span class="main">{{ config.title }}</span>
			<span class="sub">{{ config.title_sub }}</span>
		</div>
		
		<ul class="menu">
			<li><a href="{% url blog-index %}">Blog</a></li>
			<li><a href="{% url gallery-index %}">Gallery</a></li>
			{% if config.artist_index_caption %}
				<li><a href="{% url artist-index %}">{{ config.artist_index_caption }}</a></li>
			{% endif %}
			{% for page in pages_list %}
				{% if page.show_in_menu %}
					<li><a href="{% url page-detail page.slug %}">{{ page.title }}</a></li>
				{% endif %}
			{% endfor %}
		</ul>
		<div style="clear: both;"></div>
	</div>
	<div class="content">
		{% block content %}{% endblock %}
	</div>
	{% if config.author %}
		<div class="footer">	
			Site content &copy; {% now "Y" %} {{ config.author }}
		</div>
	{% endif %}
	{% if config.google_analytics_id %}
		<script type="text/javascript">
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		</script>
		<script type="text/javascript">
		var pageTracker = _gat._getTracker("{{ config.google_analytics_id }}");
		pageTracker._initData();
		pageTracker._trackPageview();
		</script>
	{% endif %}
</body>
{% endif %}
</html>
